How to create GUID/UUID

Hi everyone!

Could someone tell me/explain how it is possible to create a new GUID/UUID value with DXL? Perhaps somehow using the OLE Automation mechanism from DXL? Has someone an idea?

Thanks in advance, Helko
Helko - Mon Mar 01 09:18:56 EST 2010

Re: How to create GUID/UUID
Mathias Mamsch - Mon Mar 01 10:56:12 EST 2010

googling for "GUID createobject" gives me "guid = CreateObject("Scriptlet.TypeLib").Guid" which translates to
 

OleAutoObj x = oleCreateAutoObject "Scriptlet.TypeLib"
string s 
oleGet (x, "Guid", s) 
print s

 


and seems to work.

Regards, Mathias

 

Re: How to create GUID/UUID
Helko - Mon Mar 01 11:04:08 EST 2010

Mathias Mamsch - Mon Mar 01 10:56:12 EST 2010

googling for "GUID createobject" gives me "guid = CreateObject("Scriptlet.TypeLib").Guid" which translates to
 

OleAutoObj x = oleCreateAutoObject "Scriptlet.TypeLib"
string s 
oleGet (x, "Guid", s) 
print s

 


and seems to work.

Regards, Mathias

 

Mathias, great! You have saved my day! I searched in Google with similar terms, but not exactly with your search term :)

Cheers, Helko